<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="app" uri="http://www.wanrenhui.com"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<%@include file="/res/include/base-head.jsp"%>
<%@include file="/res/include/jquery-easyui.jsp"%>
<script type="text/javascript" src="${pageContext.request.contextPath}/res/js/user/userBase.js"></script>
</head>
<body>
	<div class="form_item">
		<form id="data-form">  
			<dl>
	        	<dt>昵称：</dt>
	            <dd>${userBaseVo.nick}</dd>
	        </dl>
	        <dl>
	        	<dt>性别：</dt>
	            <dd>${userBaseVo.sexDesc}</dd>
	        </dl>
			<dl>
				<dt>所属社区：</dt>
				<dd>${userBaseVo.communityName}</dd>
			</dl>
			<dl>
				<dt>帐号类型：</dt>
				<dd>${userBaseVo.typeDesc}</dd>
			</dl>
			<dl>
				<dt>帐号：</dt>
				<dd>${userBaseVo.userIdentity}</dd>
			</dl>
			<dl>
				<dt>发帖数：</dt>
				<dd>${userBaseVo.talentCount}</dd>
			</dl>
			<dl>
				<dt>用户评论数：</dt>
				<dd>${userBaseVo.totalCommentCount}</dd>
			</dl>
			<dl>
				<dt>点赞数：</dt>
				<dd>${userBaseVo.totalPraiseCount}</dd>
			</dl>
			<dl>
				<dt>荣誉值：</dt>
				<dd>${userBaseVo.honorValue}</dd>
			</dl>
			<dl>
				<dt>荣誉等级：</dt>
				<dd>${userBaseVo.honorLevel}</dd>
			</dl>
			<dl>
				<dt>圈币：</dt>
				<dd>${userBaseVo.quanValue}</dd>
			</dl>
			<dl>
				<dt>余额：</dt>
				<dd>${userBaseVo.money}</dd>
			</dl>
			<dl>
				<dt>代金卷数量：</dt>
				<dd>${userBaseVo.couponCount}</dd>
			</dl>
			<dl>
				<dt>订单数量：</dt>
				<dd>${userBaseVo.orderCount}</dd>
			</dl>
			<dl>
				<dt>注册时间：</dt>
				<dd>${userBaseVo.strNewAt}</dd>
			</dl>
			<dl>
				<dt>兴趣：</dt>
				<dd>${userBaseVo.interests}</dd>
			</dl>
			<dl>
				<dt>家乡：</dt>
				<dd id="hometown">${userBaseVo.hometown}</dd>
			</dl>
			<dl>
				<dt>美食：</dt>
				<dd>${userBaseVo.delicacys}</dd>
			</dl>
			<dl>
				<dt>行业：</dt>
				<dd id="profession">${userBaseVo.profession}</dd>
			</dl>
			<dl>
				<dt>学校：</dt>
				<dd id="graduateSchool">${userBaseVo.graduateSchool}</dd>
			</dl>
			<dl>
				<dt>娱乐：</dt>
				<dd>${userBaseVo.entertainment}</dd>
			</dl>
		</form>
	</div>
<script>
 document.getElementById("hometown").innerHTML = formatHometown(document.getElementById("hometown").innerHTML);
 document.getElementById("profession").innerHTML = formatProfession(document.getElementById("profession").innerHTML);
function formatHometown(value) {
		switch(value){
			case "1":return "北京市";
			case "2":return "天津市";
			case "3":return "上海市";
			case "4":return "重庆市";
			case "5":return "河北省";
			case "6":return "河南省";
			case "7":return "云南省";
			case "8":return "辽宁省";
			case "9":return "黑龙江省";
			case "10":return "湖南省";
			case "11":return "安徽省";
			case "12":return "山东省";
			case "13":return "新疆维吾尔族自治区";
			case "14":return "江苏省";
			case "15":return "浙江省";
			case "16":return "江西省";
			case "17":return "湖北省";
			case "18":return "广西壮族自治区";
			case "19":return "甘肃省";
			case "20":return "山西省";
			case "21":return "内蒙古自治区";
			case "22":return "陕西省";
			case "23":return "吉林省";
			case "25":return "福建省";
			case "26":return "贵州省";
			case "27":return "广东省";
			case "28":return "青海省";
			case "29":return "西藏自治区";
			case "30":return "四川省";
			case "31":return "宁夏回族自治区";
			case "32":return "海南省";
			case "33":return "台湾省";
			case "34":return "香港特别行政区";
			case "35":return "澳门特别行政区";
		}
		
	}
	
	function formatProfession(value) {
		switch(value){
			case "1":return "农、林、牧、渔业";
			case "2":return "采矿业";
			case "3":return "制造业";
			case "4":return "电力、热力、燃气及水生产和供应业";
			case "5":return "建筑业";
			case "6":return "批发和零售业";
			case "7":return "交通运输、仓储和邮政业";
			case "8":return "住宿和餐饮业";
			case "9":return "信息传输、软件和信息技术服务业";
			case "10":return "金融业";
			case "11":return "房地产业";
			case "12":return "租赁和商务服务业";
			case "13":return "科学研究和技术服务业";
			case "14":return "水利、环境和公共设施管理业";
			case "15":return "居民服务、修理和其他服务业";
			case "16":return "教育";
			case "17":return "公共管理、社会保障和社会组织";
			case "18":return "文化、体育和娱乐业";
			case "19":return "国际组织";
		}
	}
	
	
	
	</script>
	
</body>
</html>